package com.scau.phradmin.business.contents.service;

import com.scau.phradmin.domain.entity.News;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public interface ContentsService {

    /**
     * 查询所有新闻信息
     * @param pages
     * @return
     */
    Object newsSelectAll(int pages);

    /**
     * 通过id查询唯一新闻信息
     * @param id
     * @return
     */
    Object newsSelectById(String id);

    @Transactional
    /**
     * 添加用户
     * @param user
     * @return
     */
    boolean newsAdd(News news);
}
